package database;

import model.IGarage;
import model.IMaster;
import model.IOrder;

public class DataBase implements IDataBase {
	
	private IOrder[] orders = new IOrder[10];
	private IMaster[] masters = new IMaster[10]; 
	private IGarage[] garages = new IGarage[10];
	
	private int numbersOfOrders;
	private int numbersOfMasters;
	private int numbersOfGarages;
	
	public IOrder[] getOrders() {
		return orders;
	}
	
	public void addOrder(IOrder order){
		orders[numbersOfOrders] = order;
		numbersOfOrders++;
	}
	
	public IMaster[] getMasters() {
		return masters;
	}
	
	public void addMaster(IMaster master){
		masters[numbersOfMasters] = master;
		numbersOfMasters++;
	}
	
	public IGarage[] getGarages() {
		return garages;
	}
	
	public void addGarage(IGarage garage){
		garages[numbersOfGarages] = garage;
		numbersOfGarages++;
	}
}
